<?php
include_once( 'config.php' );
include_once( 'saetv2.ex.class.php' );

session_start();

$tClientV2;

if (isset($_SESSION['saeTClientV2'])) {
	$tClientV2 = $_SESSION['saeTClientV2'];
} else {
	header('Location: index.php');
	
	exit;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>批量删评论</title>
<link rel="stylesheet" rev="stylesheet" type="text/css" media="all" href="css/bootstrap.min.css" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-transition.js"></script>
<script type="text/javascript" src="js/bootstrap-modal.js"></script>

<script type="text/javascript">
	var accessToken = '<?php echo $tClientV2->get_oauth()->access_token ?>';
</script>

<script type="text/javascript" src="js/main.js"></script>
</head>

<body>
	<div class="container">
		<div id="commentsLoadingDiv" class="modal hide fade" style="width: 300px; margin-left: -150px; margin-top: 200px; background: #DDDDDD;">
			<p style="text-align: center; padding-top: 10px;">
				加载评论中，请稍候...
			</p>
	    </div>
	    
	    <div id="commentsDeletingDiv" class="modal hide fade" style="width: 300px; margin-left: -150px; margin-top: 200px; background: #DDDDDD;">
			<p style="text-align: center; padding-top: 10px;">
				删除评论中，请稍候...
			</p>
	    </div>
	
		<div class="row" style="padding-top: 10px; border-bottom: 2px solid #DDDDDD;">
			<div class="span1">
				<p style="text-align: center;">
					<input id="commentsCheckbox" type="checkbox" onclick="clickCommentsCheckbox(this.checked)"/>
				</p>
			</div>
			<div class="span9">
				<p style="font-size: 18px; font-weight: bold;">
					我发出的评论列表
				</p>
			</div>
			<div class="span2">
				<p style="text-align: center;">
					<button id="commentsDeleteButton" class="btn disabled" disabled="disabled" onclick="clickCommentsDeleteButton()">删除</button>
				</p>
			</div>
		</div>
	
		<div id="commentsDiv">
		</div>
		
		<div id="paginationDiv" class="pagination pagination-centered">
		    <ul>
		    </ul>
	    </div>
		
		<div class="row">
			<div class="span12">
				<div style="margin: 10px 0px; text-align: center;">
					意见反馈
					<a href="http://weibo.com/gjjhgjjh" target="_blank">@工具集合</a>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
